home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / PTD_TREE.ZIP / SAMPLE-1.POV < prev    next >
Encoding:
Text File  |  1996-09-19  |  2.8 KB  |  93 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //------------------------------------------------------------------->
  4. //
  5. // "sample-1.pov" - Sample tree for the "ptd_tree" include file.
  6. //
  7. // This is the fancy one!
  8. //
  9. //------------------------------------------------------------------->
  10. //------------------------------------------------------------------->
  11. //
  12. // Set up a simple scene.
  13.  
  14.         #include "colors.inc"
  15.         #include "textures.inc"
  16.         #include "skies.inc"
  17.         #include "golds.inc"
  18.         #include "stones.inc"
  19.         #include "glass.inc"
  20.  
  21.         #default { finish { Shiny } }
  22.  
  23.         camera { location < 0, 6, -22> 
  24.         look_at < 0, 9, 0> }
  25.  
  26.         light_source { < -100, 70, -100 > color rgb 2 }
  27.         light_source { <    0, 10, -100 > color White shadowless }
  28.  
  29.         background { White }
  30.         sky_sphere { S_Cloud1 rotate y * 180 }
  31.  
  32.         plane { y, 0
  33.                 pigment { color rgb < 0.5, 0.6, 0.2 > }
  34.                 normal { crackle 1 scale 1 } }
  35.  
  36. //------------------------------------------------------------------->
  37. //------------------------------------------------------------------->
  38. //
  39. // Now set all of the variables for the tree. read "ptd_tree.txt" to
  40. // find out what all these things do!
  41.  
  42.         #declare TREE_RAND = seed(0)
  43.         #declare Wiggle_Flag = on
  44.         #declare Branches_On_End_Flag = on
  45.  
  46.         #declare Number_Of_Large_Branches = 8
  47.         #declare Number_Of_Medium_Branches = 8
  48.         #declare Number_Of_Small_Branches = 8
  49.  
  50.         #declare Large_Branch_Minimum_Angle = 20
  51.         #declare Large_Branch_Maximum_Angle = 80
  52.  
  53.         #declare Medium_Branch_Minimum_Angle = 20
  54.         #declare Medium_Branch_Maximum_Angle = 80
  55.         
  56.         #declare Small_Branch_Minimum_Angle = 20
  57.         #declare Small_Branch_Maximum_Angle = 80
  58.  
  59.         #declare Tree_Trunk_Size = 9
  60.  
  61.         #declare Large_Branch_Size_Min = 2
  62.         #declare Large_Branch_Size_Max = 4
  63.  
  64.         #declare Medium_Branch_Size_Min = 2
  65.         #declare Medium_Branch_Size_Max = 3
  66.  
  67.         #declare Small_Branch_Size_Min = 2
  68.         #declare Small_Branch_Size_Max = 4
  69.  
  70.         #declare Leaf_Type = 5
  71.  
  72.         #declare TREE_MESH_SIZE = 200
  73.  
  74.         #declare Leaf_Texture = texture { T_Stone18 scale 0.5 }
  75.         #declare Bark_Texture = texture { T_Stone14
  76.                 normal { bumps 2.0 scale 0.1 } }
  77.  
  78. //------------------------------------------------------------------->
  79. //------------------------------------------------------------------->
  80. //
  81. // Now go and build the tree, then show it.
  82.  
  83.         #include "ptd_tree.inc"
  84.  
  85.         object { Complete_Tree rotate y * 180 }
  86.  
  87. //------------------------------------------------------------------->
  88. //------------------------------------------------------------------->
  89. //
  90. // End of this file.
  91.  
  92.  
  93.